import Vue from 'vue';
import App from './App';
import store from './store';
import Request from './util/pocky-request/index';
import './fonts/iconfont.css';
import jIcon from './components/jIcon/jIcon.vue';
import { handlerAppMessagePath } from './util/shareUtil.js';
import themeConfig from './theme/index.js';
const theme = themeConfig.getTheme(store.state.common.appid);
import uView from "uview-ui";
Vue.use(uView);
Vue.use(jIcon);

// #ifdef H5
import './util/ican-H5Api.js'
import wechat from './common/wechat'
if (wechat.isWechat()) {
	Vue.prototype.$wechat = wechat;
}
// #endif

Vue.config.productionTip = false;
Vue.prototype.$store = store;
Vue.prototype.$http = Request();
Vue.prototype.$handlerAppMessagePath = handlerAppMessagePath;
Vue.prototype.$theme = theme;

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
